//
//  WRGestureVC.h
//  WRGesturePassword
//
//  Created by 王然 on 16/6/27.
//  Copyright © 2016年 wangran. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#define GestureMaxTimes 5 //最多重试几次
#define GestureMinLength 4 //最少的设置密码的位数

typedef NS_ENUM(NSInteger , GestureV_Type) {
    GestureV_Type_Check = 100,//检查手势密码
    GestureV_Type_Create,//创建手势密码
    GestureV_Type_Modify,//修改手势密码
    GestureV_Type_Clean,//关闭手势密码
};

@interface WRGestureViewController : BaseViewController

@property (nonatomic , assign) GestureV_Type gestureViewType;//此窗口的类型


@property (nonatomic, strong) NSString* savedPassword; // 本地存储的密码

/**
   直接指定以什么方式打开,并且返回输入成功的密码passwordStr,是否显示密码轨迹isTraPW，返回success == YES 表成功 否则是失败
*/
- (instancetype)initWithType:(GestureV_Type)type withPWOut:(BOOL)isTraPW withSuccess:(void(^)(NSString * passwordStr , BOOL success))successClick;

//忘记密码回调
@property (nonatomic , copy) void (^lostPassword)();

//页面将要显示时回调
@property (nonatomic , copy) void (^gestureVCWillAppear)();
//导航左侧按钮响应
@property (nonatomic , copy) void (^navLeftBtnClick)();

@property (nonatomic , assign) BOOL isTraOutOfPW;//是否显示密码轨迹

//关闭显示密码按钮
@property (nonatomic , assign) BOOL isNoNeedGesturePW;//是否不需要输入验证密码页面

//重置输入密码次数事件 用于倒计时五分钟后调用
- (void)resetGestureMaxTimes;

@end
